package com.linkage.repository.commodity;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import com.linkage.pojo.commodity.Book;
import com.linkage.pojo.commodity.SpecialBook;

@Repository
public interface SpecialBookRepository {
    
	//在特价表中增加一种书籍
	public void save(SpecialBook sb);
	//根据图书id来修改特价书籍
	public void update(SpecialBook sb);
	//根据图书id来删除特价书的记录
	public void delete(Integer specialId);
	//查询整张表               过时
	public List<SpecialBook> select();
	//创建校验特价书实例并保存
	public boolean createSpecialBook(HttpServletRequest request, Integer bookId,float specialPrice);
	    
}
